DOS application window does not close when application finishes due to default.

Cause:


This is by default of DOS applications. The MS-DOS window remains open to display messages such as errors that may be generated by the MS-DOS-based application.

Solution:


Select the 'Close on exit' option in the 'Program' properties tab for the DOS application's icon.

NOTE 1: The MS-DOS-based application window should now close after the application has finished executing.
NOTE 2: This setting must be changed for each MS-DOS-based application individually. There is no way to set this option globally.